cmake_minimum_required(VERSION 3.10)

cmake_policy(SET CMP0074 NEW)
find_package(Boost COMPONENTS date_time)

include_directories(${Boost_INCLUDE_DIRS})

aux_source_directory(src SRC)

add_library(oslog SHARED ${SRC}) 

if(WIN32)
	target_link_libraries(oslog dmos misc tinyxml json ${Boost_LIBRARIES})
else()
	target_link_libraries(oslog dmos misc tinyxml json ${Boost_LIBRARIES} rt)
endif()

set_target_properties(oslog PROPERTIES WIN32_MANIFEST "NO")

install(TARGETS oslog LIBRARY)